package ooday01;

public class Car {
    /*属性:brand、color、price
      构造方法:car()、car(3个参数)
      方法:start()、run()、stop()
      输出:???牌子的？？？颜色的？？？块钱的车启动了.../开始跑了.../停止了...
     */
    String brand;
    String color;
    double price;
    Car(){}
    Car(String brand,String color,double price){
        this.brand = brand;
        this.color = color;
        this.price = price;
    }
    void start(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车启动了");
    }
    void run(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车开始跑了");
    }
    void stop(){
        System.out.println(brand+"牌子的"+color+"颜色的"+price+"块钱的车停止了");
    }



}
